package com.inplaceedit.client.ui.phone;

import com.google.gwt.editor.client.IsEditor;
import com.google.gwt.editor.client.LeafValueEditor;
import com.google.gwt.editor.client.adapters.ListEditor;
import com.inplaceedit.client.ui.SaveCancelDialog;
import com.inplaceedit.shared.dto.PhoneDto;

public interface PhoneListDisplay extends
		IsEditor<ListEditor<PhoneDto, LeafValueEditor<PhoneDto>>> {

	public static interface Handler {
		void onDelete(int index);

		void onEdit(int index, PhoneEditor editor, SaveCancelDialog dialog);
	}

	void setHandler(Handler handler);
}
